package com.zx.inf.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zx.inf.sys.entity.InfDsInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface InfDsInfoMapper extends BaseMapper<InfDsInfo> {
    @Select("SELECT * FROM inf_ds_info WHERE id = #{id}")
    InfDsInfo getDsInfoById(@Param("id") int id);

    @Select("SELECT * FROM inf_ds_info")
    List<InfDsInfo> getAllDsInfo();

}

